<template>
	<view class="">
		<view class="maskBox" v-if="showMaskBox">
			<image src="@/static/zs.png" mode="widthFix"
				style="width: 500rpx;margin-top: 50rpx;margin-left: 180rpx;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showMaskBox: false,
				param:{

				}
			}
		},
		mounted() {
			if(this.$route.path.indexOf("short")!=-1){
				this.param.creation_type='short'
			}else if(this.$route.path.indexOf("long")!=-1){
				this.param.creation_type='long'
			}else if(this.$route.path.indexOf("infomation")!=-1){
				this.param.creation_type='infomation'
			}
			this.param.creation_id=this.$route.query.id;
		},
		methods:{
			downloadFun(){
				ULink(
				[{
					id: 'usr11jeqgs9gdsoj',
					data: this.param,
					selector: '#xxl',
					// timeout: 2000,
					// useOpenInBrowerTips: 'default',
					useOpenInBrowerTips: "default",
					lazy: true,
					auto: false,
				}]);
				// if(navigator.userAgent.indexOf('MicroMessenger') > -1){
				// 	this.showMaskBox = true
				// }else{
				// 	this.showMaskBox = false
				// }
				// switch (uni.getSystemInfoSync().platform) {
				// 	case 'android':
				// 		console.log('运行Android上')
				// 		window.location.href = 'http://ground.gxjihe.top/download/peixiu.apk'
				// 		break;
				// 	case 'ios':
				// 		console.log('运行iOS上')
				// 		window.location.href = 'itms-apps://itunes.apple.com/cn/app/id6467184869?mt=8'
				// 		break;
				// 	default:
				// 		console.log('运行在开发者工具上')
				// 		break;
				// }
			}
		}
		 
	}
</script>

<style>
	.maskBox {
		height: 100vh;
		width: 100vw;
		position: fixed;
		background-color: rgba(0, 0, 0, 0.7);
		z-index: 9999;
	}
</style>